package com.sync.syncmasterdata;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sync.syncmasterdata.customer.service.impl.SyncServiceImpl;
import com.sync.syncmasterdata.product.entity.oa.ProductWorkflowDeleteEntity;
import com.sync.syncmasterdata.product.service.ManualSyncInventoryService;
import com.sync.syncmasterdata.product.service.SyncInventoryService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
@Slf4j
class SyncMasterDataApplicationTests6 {

    @Autowired
    private ObjectMapper objectMapper;

    @Autowired
    private ManualSyncInventoryService manualSyncInventoryService;

    @Autowired
    private SyncServiceImpl syncService;

    @Test
    public void test1(){
        String code="SJ050608";
       String ret= manualSyncInventoryService.handlerProductErpHas(code);
        System.out.println("---------->" + ret);
    }

    @Test
    public void test2(){
        String guid = "dfc635b3-bc56-ee11-8ad2-c6e6d94a7ac3";
        syncService.getCrmAccount(guid);
    }
}
